<?php

/**
* @property DB_active_record $db
* @property Service $service
* @property Provider $provider
* @property Organisation_type $organisation_type
* */
class SearchByAddress extends MY_Controller {
	public function __construct()
	{
		parent::__construct();
	}

	function index()
	{
		parent::add_data( 'serviceList' , $this->service->getAll()  );
		parent::view( "SearchByAddress/index.php"  );
	}
		
	function Search()
	{
		ECHO "<PRE>";
		ECHO var_dump($_POST);
		ECHO "</PRE>";

		
//		$serviceType = $_POST['chkServiceType'] ;
//		$OrganisationType = $_POST['hidOrganisationType'] ;
//		parent::check_null_show_error ( $serviceType , $OrganisationType ) ;
//		
//		parent::add_data( 'serviceList' , $this->service->getServiceList_byTypeId( $serviceType ) );
//		parent::add_data( 'organisationTypeName' , $this->organisation_type->getOrginsationName_byId( $OrganisationType ) );
//		
//		parent::view( "SearchByServices/search.php"  );

		
	}

	
}

